package com.zhong.gang.app.ui.examine;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhong.gang.app.R;
import com.zhong.gang.applib.utils.TimeUtils;

public class ExamineAdapter extends BaseQuickAdapter<ExamineBean, BaseViewHolder> {
    public ExamineAdapter() {
        super(R.layout.item_examine);
    }

    @Override
    protected void convert(BaseViewHolder helper, ExamineBean item) {
        helper.setText(R.id.time, TimeUtils.getTime2(item.getUpdateTime()));
        if (item.getStatus() == 0)
            helper.setText(R.id.status,"未审核");
        else if (item.getStatus() == 1)
            helper.setText(R.id.status,"审核不通过");
        else
            helper.setText(R.id.status,"审核通过");
        helper.setText(R.id.moneny,item.getAmount()+"元");
    }
}
